#include <stdio.h>
int main()
{
	int a[7] = {2, 1, 3, 3, 0, 5, 2};

	for ( int i = 0; i < 6; i++ )
	{
		if ( a[i] > a[i+1] ) {
			int t = a[i];
			a[i] = a[i+1];
			a[i+1] = t;
		}
	}
	
	for ( int i = 0; i < 5; i++ )
	{
		if ( a[i] > a[i+1] ) {
			int t = a[i];
			a[i] = a[i+1];
			a[i+1] = t;
		}
	}
	
	for (int i = 0; i < 7; i++ ) {
		printf("%d ", a[i]);
	}
	return 0;
}
